package com.lg.aptcomp.utils

import android.content.Context
import android.content.res.Resources
import android.view.View
import android.view.animation.AnimationUtils
import android.view.animation.AnimationUtils.loadAnimation
import com.lg.aptcomp.R

class Utils {

    companion object {
        fun showShakeError(context: Context, viewToAnimate: View) {
            try {
                viewToAnimate.startAnimation(
                    AnimationUtils.loadAnimation(
                        context,
                        R.anim.shake_error
                    )
                )
            } catch (e: Resources.NotFoundException) {
                e.printStackTrace()
            }
        }


    }
}